<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户列表</title>
<%@include file="../easyui/easyui.jsp"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/users.js"></script>
<script type="text/javascript">
	$(function() {
		$("#dg").datagrid({
			url : '${pageContext.request.contextPath}/users/getUsersToJson',
			pagination : true,
			width : 410,
			rownumbers : true,
			fitColumns : true,
			autoRowHeight : true,
			columns : [ [ {
				field : '',
				width : 15,
				align : 'center',
				checkbox : true
			}, {
				field : 'username',
				title : '用户名',
				width : 20,
				align : 'center',
				sortable : true
			}, {
				field : 'userage',
				title : '年龄',
				width : 20,
				align : 'center',
				sortable : true
			}, {
				field : 'useraddress',
				title : '地址',
				width : 25,
				align : 'center',
				sortable : true
			}, ] ]
		});
	});
</script>
</head>
<body>
	<div>
		<table id="dg"></table>
	</div>
	<div>
		<input type="button" value="删除" onclick="delUser()"> <input
			type="button" value="增加" onclick="addUser()"> <input
			type="button" value="修改" onclick="editUser()"> 
	</div>
	<div>
		<a href="${pageContext.request.contextPath}/users/rowBackUser">还原数据</a>
	</div>
	<%@include file="../form/userForm.jsp"%>
</body>
</html>